﻿

using DataSystem;
using TerrainSystem;
using UnityEngine;

public class Game
{
	public GameSetting GameSetting => Main.GameSetting;
	public TerrainObject Terrain => Main.Terrain;
	public Vector2Int? MouseCoord { get; private set; } = null;
	public GameCamera GameCamera => Main.GameCamera;

	public Game_Construction Construction { get; private set; } = new Game_Construction ();
	
	public void Update_Captured ()
	{
		MouseCoord = GameCamera.GetMouseCoord ();
		Construction.Build_Update ();
		if (Input.GetKeyDown (KeyCode.R))
		{
			Construction.Build_Flip ();
		}
	}
}
